﻿#ifndef SYSVAR_H
#define SYSVAR_H

HANDLE g_hMutex = NULL;

tagSysConfig     g_SysConfig;

tagGrid_Prop     g_Grid_Prop;

BOOL             g_bRun; //自动运行

CStringW         g_strModulePathW;

HWND             g_hMainWnd;

char  g_szMutexName[MAX_PATH];

CRITICAL_SECTION g_csInfo;  //缓冲临界区
tagTip_InfoList  g_Tip_InfoList;

CLogEx         g_Log;

DWORD            g_dwOrder; //Modbus序号

tagLed_InfoList  g_Led_InfoList;

tagSample_ParaList g_Sample_ParaList;

tagLedApi        g_LedApi;

CSerialPort      g_SerialPort;

int   g_nLenCmd;
BYTE  g_byCmdBuf[256];

int   g_nLenResp;
BYTE  g_byRespBuf[256];

CClientSocket    g_ClientSocket;
CSampleThread    g_SampleThread;
CLedThread       g_LedThread;
CExpireLogThread   g_ExpireRadarThread;

COMM_STATUS      g_Comm_Status;


#endif